import service from '@/request/wyyx'
import sytResponse from '@/request/syt'

export const getCategoryInfo = () => {
  return service.get<any>('/item/cateList.json?__timestamp=1630131286110&categoryId=')
}


//根据分类Id获取分类
export const getGoodsList = (id: number) => {
  return service.get<any>(`/item/cateList.json?__timestamp=1630131455012&categoryId=${id}`)
}

//获取分类下的商品列表
export const getshopList = (id1: number, id2: number) => {
  return service.get<any>(`/item/list.json?__timestamp=1630133942864&categoryType=0&subCategoryId=${id1}&categoryId=${id2}`)
}

// 获取商品详情数据
// export const getIphone = (id:number) => {
//   return sytResponse.get<any>(`/item/${id}`)
// }
export const reqGetPhone = (skuId: number) => {
  return sytResponse.get<any>(`/api/item/${skuId}`)
}
